<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>>
<!DOCTYPE html>
<base href="<%=basePath%>">

<html>
    
    <head>
        <meta charset="utf-8">
        <title>
            阳光成单系统
        </title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="format-detection" content="telephone=no">
        <link rel="stylesheet" href="System/css/x-admin.css" media="all">
    </head>
    <body>
            <a href="goods/querySelPageInfo?page=1" style="text-decoration:none">返回上一页</a>
     <div class="x-body" style="width: 600px">
         <form class="layui-form" action="level-edit.jsp" method="post">
             <input type="hidden" id="level-id" name="mid" disabled="" value="" class="layui-input">

             <div class="layui-form-item">
                 <label for="level-name" class="layui-form-label">
                     <span class="x-red">*</span>移动前位置
                 </label>
                 <div class="layui-input-inline">
                     <input type="text" id="level-name" name="" required="" lay-verify="required"
                            autocomplete="off" value="" class="layui-input">
                 </div>
             </div>

             <div class="layui-form-item">
                 <label for="level-kiss" class="layui-form-label">
                     <span class="x-red">*</span>移动后位置
                 </label>
                 <div class="layui-input-inline">
                     <input type="text" id="level-kiss" value="" lay-verify="required"
                            autocomplete="off" class="layui-input">
                 </div>
             </div>
           <%--  <div class="layui-form-item">
                 <label for="level-kiss" class="layui-form-label">
                     <span class="x-red">*</span>移动时间
                 </label>
                 <div class="layui-input-inline">
                     <input type="text" id="moveMark" name="" value="" lay-verify="required"
                            autocomplete="off" class="layui-input">
                 </div>
             </div>--%>
             <div class="layui-form-item">
                 <label <%--for="L_repass"--%> class="layui-form-label">
                 </label>
                 <button  class="layui-btn" lay-filter="" lay-submit="" type="submit">
                     移库
                 </button>
                 <button  class="layui-btn" type="reset">
                     重置
                 </button>
             </div>
         </form>
     </div>

        <script src="System/lib/layui/layui.js" charset="utf-8">
        </script>
        <script src="System/js/x-layui.js" charset="utf-8">
        </script>
        <script>
            layui.use(['form','layer'], function(){
                $ = layui.jquery;
              var form = layui.form()
              ,layer = layui.layer;
            
              //监听提交
              form.on('submit(save)', function(data){
                console.log(data);
                //发异步，把数据提交给php
                layer.alert("修改成功", {icon: 6},function () {
                    // 获得frame索引
                    var index = parent.layer.getFrameIndex(window.name);
                    //关闭当前frame
                    parent.layer.close(index);
                });
                return false;
              });
              
              
            });
        </script>
        
    </body>

</html>